package cn.xyinping.hrm.feign;

import cn.xyinping.hrm.doc.CourseDoc;
import cn.xyinping.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 27266
 * @desrciption 全文搜索的API
 * @date 2021/11/28
 */
@FeignClient(value = "server-search", fallbackFactory = CourseESFeignFallbackFactory.class)
@RequestMapping("/course")
public interface CourseESFeign  {
    @RequestMapping("/save")
    AjaxResult save(@RequestBody CourseDoc doc);
}
